// SetFlashTime.cpp : implementation file
//

#include "stdafx.h"
#include "FilesTransInNet.h"
#include "SetFlashTime.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CSetFlashTime dialog


CSetFlashTime::CSetFlashTime(int nFlashTime, CWnd* pParent /*=NULL*/)
	: CDialog(CSetFlashTime::IDD, pParent)
{
	//{{AFX_DATA_INIT(CSetFlashTime)
	m_nCurFlashtime = 0;
	m_nNewFlashTime = 0;
	m_nFlashTime = nFlashTime;
	//}}AFX_DATA_INIT
}


void CSetFlashTime::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CSetFlashTime)
	DDX_Text(pDX, IDC_EDITCURFLASH, m_nCurFlashtime);
	DDV_MinMaxInt(pDX, m_nCurFlashtime, 0, 60);
	DDX_Text(pDX, IDC_EDITNEWFLASH, m_nNewFlashTime);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CSetFlashTime, CDialog)
	//{{AFX_MSG_MAP(CSetFlashTime)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CSetFlashTime message handlers

int CSetFlashTime::GetNewFlashTime()
{
	return m_nNewFlashTime;
}

BOOL CSetFlashTime::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	// TODO: Add extra initialization here
	m_nFlashTime = m_nCurFlashtime;
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}
